package com.example.demo.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;

/**
 * @program: SpringAOP
 * @ClassName Employee
 * @description:
 * @author: zsn
 * @create: 2024-07-22 10:35
 * @Version 1.0
 **/
@Data
public class Employee implements Serializable
{

    private Long id;

    @Excel(name = "用户名称")
    private String username;

    @Excel(name = "邮件",width = 20)
    private String email;

    @Excel(name = "年龄")
    private Integer age = 18;

    @Excel(name = "生日",format = "yyyy-MM-dd")
    private Date bornDate = new Date();

    @Excel(name = "性别",replace={"男_true","女_false"})
    private Boolean sex = true;

    @ExcelEntity
    private Department department;

    @Excel(name="头像",type = 2)
    private String headImage;
    @Excel(name="爱好",orderNum = "5",width = 20.0)
    private List<String> hobbys;
    @ExcelCollection(name = "设备")
    private List<Equipment> equipments;
}